﻿using System;
using System.Collections;
using System.Text;

using mborn.Model;

namespace mborn.DAL
{
    public class UserClassDAL
    {
        private EntityControl control;

        public  UserClassDAL()
        {
            control = EntityControl.CreateEntityControl("Model");
        }

        public void AddUserClass(UserClass userClass)
        {
            control.AddEntity(userClass);
        }

        public void DelUserClass(UserClass userClass)
        {
            control.DeleteEntity(userClass);
        }

        public void UpdateUserClass(UserClass userClass, int ID)
        {
            control.UpdateEntity(userClass, ID);
        }

        public IList GetUserClass(string strHQL)
        {
            return control.GetEntities(strHQL);
        }
    }
}
